home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 3: Developer Tools
/
Linux Cubed Series 3 - Developer Tools.iso
/
utils
/
shell
/
xd-2.08
/
xd-2
/
xd
/
Arbiter
/
select.cc
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1994-08-30
|
323 b
|
22 lines
#include "Arbiter.h"
void Arbiter::select(void)
{
NonCanon
nckbd;
register unsigned
c;
c = nckbd.get(); // get the replay
number =
'0' <= c && c <= '9' ?
c - '0' // numbers < 10
:
c - ('a' - 10); // numbers above 10
if (number > count) // none selected
number = 0;
}